<<<<<<< HEAD
import { defineStore } from 'pinia';
//侧边导航的收缩功能
export const useSidebarStore = defineStore('sidebar', {
	state: () => {
		return {
			collapse: false
		};
	},
	getters: {},
	actions: {
		handleCollapse() {
			this.collapse = !this.collapse;
		}
	}
=======
import {defineStore} from 'pinia'
import {ref, computed} from 'vue'
//侧边导航的收缩功能
export const useSidebarStore = defineStore('sidebar', () => {
    const isCollapse = ref(false)

    function handleCollapse() {
        this.isCollapse = !this.isCollapse;
    }

    return {isCollapse, handleCollapse}
>>>>>>> c088509ecc2282a34d0b932f6925d649261c336d
});
